package fourmiefight.metier;

import org.dyn4j.geometry.Circle;

import fourmiefight.abstractionlib2d.CustomBody;
import fourmiefight.ihm.PheromoneView;

public class Pheromone extends CustomBody 
{
	private static final double WIDTH = 0.06;
	
	private double persistance = 20;
	private double directionToTheFood;
	private int idFourmiliere;
	
	public Pheromone(double x, double y) 
	{
		view = new PheromoneView();
		this.translate(x, y);
		Circle circle = new Circle(WIDTH);
        this.addFixture(circle);
        this.setMass();
	}
	
	// ----- Getters && Setters ----- //
	public double getPersistance() 
	{
		return this.persistance;
	}
	
	public void setPersistance(double persistance) 
	{
		this.persistance = persistance; 
	}
	
	public void removeOfBody()
	{
		this.getWorld().removeBody(this);
	}

	public double getDirectionToTheFood() 
	{
		return directionToTheFood;
	}

	public void setDirectionToTheFood(double directionToTheFood) 
	{
		this.directionToTheFood = directionToTheFood;
	}

	public int getIdFourmiliere()
	{
		return idFourmiliere;
	}

	public void setIdFourmiliere(int idFourmiliere)
	{
		this.idFourmiliere = idFourmiliere;
	}
}
